package com.fd.dx.service.impl;

import com.fd.dx.domain.FW;
import com.fd.dx.mapper.FWMapper;
import com.fd.dx.service.FWService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by lenovo on 2018/3/10.
 */
@Service
public class FWServiceImpl implements FWService{
    @Autowired
    public FWMapper fwMapper;
    @Override
    public FW getFWInfo(Map<String, String> map) {
        List<FW> fws=fwMapper.getFWInfo(map);
        if(fws.size()!=0)
        {
            return fws.get(0);
        }
        return null;
    }

    @Override
    public Integer updateFWInfo(FW fw) {
        return fwMapper.updateFWInfo(fw);
    }
}
